s<extend name="Public/base" />
<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2> <span style='color: red;'>{$shopId|get_subpro_department_name}</span>申请记录</h2>
    </div>
    <div class="cf">
        <div class="fl ">
            <a href="{:U('subproapplyadd')}&dpid={$dpid}" class='btn btn-primary'>创建申请单</a>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th>批次号</th>
                <th>请求时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td><a href="{:U('Subpro/subproapplylistdetail')}&batch={$vo['batch']}">{$vo.batch}</a> </td>
                        <td>{$vo.createAt|time_format}</td>
                        <td>{$vo.status|get_subpro_applystatus_name}</td>
                        <td>
                            <a href="{:U('Subpro/subproapplylistdetail')}&batch={$vo['batch']}" class="btn btn-primary">详情</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索查询
        $('#submit').click(function () {
            document.getElementById("form-search").submit()
        });
        //导航高亮
        highlight_subnav('{:U('Subpro/outstorageindex')}');
    </script>
</block>